package com.example.activemq;

import javax.jms.Queue;
import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;

/**
 * Project:spring-boot-activemq
 * <p>
 * Title:ActiveMqConfig.java
 * <p>
 * Description:
 * <p>
 * Copyrigth:Jiang Software LTD.co Copyright (c) 2021
 * <p>
 * 
 * @version 1.0
 * @since 1.8
 * @author jiang
 * @history 2021 jiang create
 */

@Configuration
@EnableJms
public class ActiveMqConfig {

	@Bean
	public Queue queue() {
		ActiveMQQueue activeMQQueue = new ActiveMQQueue("msg.queue");
		return activeMQQueue;
	}
}
